# _*_ coding: utf-8 _*_
# @Time     : 2022/7/23 11:35
# @Author   : dake
# @Email    : dake@2545923.com
# @File     : base_page.py
# @Software : PyCharm


class BasePage():
    """页面基类"""
    def __init__(self, driver):
        self.driver = driver

    def find_element(self, locator):
        """查找元素的方法"""
        return self.driver.find_element(*locator)

    def swip_upglide(self):
        '''精选页面上滑'''
        self.driver.swipe(400,1250,400,1000,500)